﻿namespace System.Runtime.InteropServices
{
#if NETSTANDARD1_5
    [ComVisible(true)]
    public interface ICustomMarshaler
    {
        object MarshalNativeToManaged(IntPtr pNativeData);

        IntPtr MarshalManagedToNative(object ManagedObj);

        void CleanUpNativeData(IntPtr pNativeData);

        void CleanUpManagedData(object ManagedObj);

        int GetNativeDataSize();
    }
#endif
}
